<form class="form-horizontal form-validate form-modal" method="post" action="{:url('regionProxy')}">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">区域代理授权管理</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label class="col-sm-3 control-label">区域代理：</label>
                    <div class="col-sm-8 ">
                        {volist name="regionProxy" id="val"}
                        <label class="radio-inline">
                            <input type="radio" name="region_proxy" value="{$key}" {$userInfo['region_proxy']==$key?'checked':''}
                                class="js_radio_undertake" onClick="selProxyRegion()"  data-class="region_select_{$key}"
                            />
                            {$val}
                        </label>
                        {/volist}
                    </div>
                </div>
                <div class="radio_undertake_region_proxy region_select_1 region_select_2 region_select_3 {$userInfo['region_proxy']==0?'hide':''}">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">选择区域：</label>
                        <div class="col-sm-9">
                            <select name="province" id="province" style="width:120px;"  class="{$userInfo['region_proxy']<1?'hide':''} region_sel radio_undertake_region_proxy region_select_1 region_select_2 region_select_3" nextsel="city|district" sel_val="100000|0">
                                <option value="">请选择</option>
                            </select>
                            <select name="city" id="city" style="width:120px;"  class="{$userInfo['region_proxy']<2?'hide':''} region_sel radio_undertake_region_proxy  region_select_2 region_select_3" nextsel="district" >
                                <option value="">请选择</option>
                            </select>
                            <select name="district" id="district" style="width:120px;"  class="{$userInfo['region_proxy']<3?'hide':''} region_sel radio_undertake_region_proxy region_select_3  ">
                                <option value="">请选择</option>
                            </select>
                            <a href="javascript:;" class="m-xs" title="增加" onclick="addRegion();"><i class="fa fa-plus text-muted"></i></a>
                        </div>
                    </div>
                  <div class="form-group">
                        <label class="col-sm-3 control-label">已选区域：</label>
                          <div class="col-sm-9 regionProxyList">
                              {volist name="$regionList" id="vo"}
                               <span class="btn btn-sm btn-default m-r m-b-md regionProxyDel">
                                    <input type="hidden" name="proxy_region_id[]" value="{$vo.id}">{$vo.merger_name}<i class="fa fa-times m-l"></i>
                               </span>
                              {/volist}
                          </div>
                  </div>
                </div>
            </div>
            <div class="modal-footer">
                <input type="hidden" value="{$userInfo.user_id}" name="user_id" />
                <button type="submit" class="btn btn-primary" data-loading-text="保存中..." disabled>保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</form>
<script type="text/javascript">
    selRegionProxy = {$userInfo['region_proxy']};
</script>